/*
 * @Author: liuhanlu liuhanlu@163.com
 * @Date: 2022-05-09 08:52:26
 * @LastEditors: liuhanlu 1295166997@qq.com
 * @LastEditTime: 2022-06-30 15:44:04
 * @FilePath: \rongeduo-admin\src\api\service.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
// 客服电话列表
export function getList1(data) {
  return request({
    url: '/modules/passenger/getList',
    method: 'post',
    data
  })
}
// 修改客服电话
export function updateList(data) {
  return request({
    url: '/modules/passenger/update',
    method: 'post',
    data
  })
}
// 记录列表
export function getCustomerserivces(data) {
  return request({
    url: '/modules/customerserivce/list',
    method: 'post',
    data
  })
}
// 新版客服列表
export function newList(data) {
  return request({
    url: '/modules/new-customerserivce/list',
    method: 'post',
    data
  })
}
// 新版相关记录
export function related(data) {
  return request({
    url: '/modules/new-customerserivce/related',
    method: 'get',
    params: data
  })
}
// 相关记录
export function pull(data) {
  return request({
    url: '/modules/customerserivce/pull',
    method: 'get',
    params: data
  })
}
// 新版已读确认
export function haveRead(data) {
  return request({
    url: '/modules/new-customerserivce/haveRead',
    method: 'get',
    params: data
  })
}
// 已读确认
export function check(data) {
  return request({
    url: '/modules/customerserivce/check',
    method: 'post',
    data
  })
}
// 回复
export function reply(data) {
  return request({
    url: '/modules/customerserivce/reply',
    method: 'post',
    data
  })
}
// 新版回复
export function newReply(data) {
  return request({
    url: '/modules/new-customerserivce/reply',
    method: 'post',
    data
  })
}
// urlProb
export function urlProb(data) {
  return request({
    url: '/modules/sysCustomer/list',
    method: 'post',
    data
  })
}
// 新增urlProb
export function insertUrlProb(data) {
  return request({
    url: '/modules/sysCustomer/insert',
    method: 'post',
    data
  })
}
// 修改urlProb
export function updateUrlProb(data) {
  return request({
    url: '/modules/sysCustomer/update',
    method: 'post',
    data
  })
}
// 删除urlProb
export function deleteUrlProb(data) {
  return request({
    url: '/modules/sysCustomer/delete',
    method: 'post',
    data
  })
}
